<%-- 
    Document   : affichageMessages
    Created on : 19 avr. 2013, 10:39:45
    Author     : alocubiche
--%>

<%@page import="java.util.Collections"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic" %>

<jsp:useBean id="discussion" scope="application" class="actions.DiscussionBean"/>
<!DOCTYPE html>
<html:html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="refresh" content="1; Discussion.do">
        <link rel="stylesheet" type="text/css" href="style.css" />
        <title>Chat</title>
        <script type="text/javascript">
            window.onload=toBottom;
            function toBottom()
            {
                window.scrollTo(0, document.body.scrollHeight);
            }
        </script>
    <body class="background">
        <h1>Discussion :</h1>
       <%-- Affichage Objet Message NE MARCHE PAS
        <logic:iterate id="msg" name="discussion" property="messages" type="Ressources.Message">
            <blockquote>
                <i><bean:write name="msg" property="date"/></i> 
                <b><bean:write name="msg" property="login"/> : </b> 
                <bean:write name="msg" property="message"/>
            </blockquote>
       </logic:iterate>
       --%>
       <logic:iterate id="msg" name="discussion" property="messages" type="String">
            <blockquote> 
                <bean:write name="msg"/>
            </blockquote>
       </logic:iterate>

    </body>
</html:html>
